﻿// ===============================================================================
// XCI.NET 西安交通信息WinForm开发框架 2018 版权所有
// ===============================================================================
using System;

namespace XCI.Core
{
    /// <summary>
    /// Excel表头
    /// </summary>
    public class ExcelHead
    {
        /// <summary>
        /// 初始化Excel表头
        /// </summary>
        public ExcelHead()
        {
            
        }

        /// <summary>
        ///   初始化 <see cref="T:System.Object" /> 类的新实例。
        /// </summary>
        public ExcelHead(string name, string caption)
        {
            Name = name;
            Caption = caption;
            DataType = typeof(string);
        }

        /// <summary>
        ///   初始化 <see cref="T:System.Object" /> 类的新实例。
        /// </summary>
        public ExcelHead(string name, string caption, Type dataType)
        {
            Name = name;
            Caption = caption;
            DataType = dataType;
        }

        /// <summary>
        /// 列名
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// Excel表头名称
        /// </summary>
        public string Caption { get; set; }

        /// <summary>
        /// 数据类型
        /// </summary>
        public Type DataType { get; set; }
    }
}